<?php


namespace api\app\validate;


use think\Validate;

class MemberValidate extends Validate
{
    protected $rule = [
        'mobile' => 'require|mobile',
        'password' => 'require',
    ];
    protected $message = [
        'mobile.require' => '手机号不能为空',
        'mobile.mobile' => '手机号格式不符',
        'password.require' => '密码不能为空'
    ];
    protected $scene = [
        'login' => ['mobile','password']
    ];

}